var t,
  e = require("@/utils/jump"),
  a = (t = require("@/config/page")) && t.__esModule ? t : { default: t },
  i = require("@/utils/report");
Component({
  properties: {
    exhibitionListByOne: {
      type: Object,
      default: [],
      observer: function (t) {
        var e = this.data.tabs;
        (t && 0 !== t.length) ||
          e.map(function (t, a) {
            "常设展" === t.name && e.splice(a, 1);
          }),
          this.setData({ tabs: e });
      },
    },
    exhibitionListByTwo: {
      type: Object,
      default: [],
      observer: function (t) {
        var e = this.data.tabs;
        (t && 0 !== t.length) ||
          e.map(function (t, a) {
            "临时展" === t.name && e.splice(a, 1);
          }),
          this.setData({ tabs: e });
      },
    },
    come: { type: String, default: "1" },
  },
  data: {
    tabs: [
      { index: 0, name: "常设展" },
      { index: 1, name: "临时展" },
    ],
    currentIndex: 0,
  },
  methods: {
    onTab: function (t) {
      var e = t.currentTarget.dataset.index;
      this.setData({ currentIndex: e });
    },
    toAll: function () {
      (0, i.report)("fpage_exhibit_click", {}),
        (0, e.navigateTo)(a.default.PAGE_RECOMMEND_EXHIBITION, {});
    },
    onItem: function (t) {
      (0, i.report)("fpage_exhibit_click", {});
      var n = t.currentTarget.dataset.item;
      (0, e.navigateTo)(a.default.PAGE_RECOMMEND_EXHIBITION_CARD, {
        id: n.exhibition_id,
      });
    },
  },
});
